package com.factory.server.dto;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import com.factory.server.dto.AbstractDTO;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;

/*
/**
 *
 * @author milos
 */
@XmlRootElement
public class UserDTO extends AbstractDTO {

    private String login;
    private String email;
    private String passHash;
    private boolean isAdmin;
    private boolean blocked;

    public UserDTO() {
    }
    
    

    public UserDTO(String login, String email, String passHash, boolean isAdmin, boolean blocked) {
        this.login = login;
        this.email = email;
        this.passHash = passHash;
        this.isAdmin = isAdmin;
        this.blocked = blocked;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassHash() {
        return passHash;
    }

    public void setPassHash(String passHash) {
        this.passHash = passHash;
    }

    public boolean isIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(boolean isAdmin) {
        this.isAdmin = isAdmin;
    }

    public boolean isBlocked() {
        return blocked;
    }

    public void setBlocked(boolean blocked) {
        this.blocked = blocked;
    }
}